CommandSelect Class Reference

#include <CommandSelect.h>

Inheritance diagram for CommandSelect:

Command List of all members.

Public Member Functions

 CommandSelect (int isMultipleSelection, TraffEduObject *obj, OSGWindows *osgwind)
bool execute ()
bool unexecute ()
void changeState ()
void changeStateReverse ()

Private Attributes

OSGWindows * osgwind_
vector< TraffEduObject * > selectedObjs_
vector< TraffEduObject * > tmpObjs_
osg::StateSet * stateset
int isMultip

Constructor & Destructor Documentation

CommandSelect::CommandSelect (  int  isMultipleSelection,
TraffEduObject *  obj,
OSGWindows *  osgwind
) 
 

A constructor. Initializes isMultipleSelection and osgwind_ variables.

Parameters:
isMultipleSelection an integer argument.
obj a TraffEduObject pointer.
osgwind an OSGWindows pointer.


Member Function Documentation

void CommandSelect::changeState (   ) 
 

highlight the selected objects in the environment.

void CommandSelect::changeStateReverse (   ) 
 

un_highlight the selected objects in the environment.

bool CommandSelect::execute (   )  [virtual]
 

do the selection operation.

Returns:
Operation success

Implements Command.

bool CommandSelect::unexecute (   )  [virtual]
 

undo the selection operation.

Returns:
Operation success

Implements Command.


Member Data Documentation

int CommandSelect::isMultip [private]
 

a private variable. It shows if the user intended to make multiple selection or not.

OSGWindows* CommandSelect::osgwind_ [private]
 

a private variable. It is initialized with the unique OSGWindows instance.

vector<TraffEduObject*> CommandSelect::selectedObjs_ [private]
 

a private vector of TraffEduObjects. It holds the selected objects.

osg::StateSet* CommandSelect::stateset [private]
 

a private osg::StateSet pointer. It holds state of the selected/deselected objects.

vector<TraffEduObject*> CommandSelect::tmpObjs_ [private]
 

a private vector of TraffEduObjects. It holds the selected objects before the last selection operation.


The documentation for this class was generated from the following file:
Generated on Sun May 28 18:44:00 2006 by  doxygen 1.4.6-NO